﻿using System;
using System.ComponentModel.DataAnnotations;


namespace NTQOnlineExam.Services.Models
{
    public class QuestionDTO
    {
        public int QuestionId { get; set; }
        public int AnswerId { get; set; }
        public string AnswerContent { get; set; }

        [Required]
        public string Content { get; set; }
        public int SectionId { get; set; }
        public int TermId { get; set; }
        public string SectionName { get; set; }
        public DateTime CreateDate { get; set; }
        public string Explaination { get; set; }
        public int QuestionNumber { get; set; }
        public QuestionDTO()
        {
            QuestionId = 0;
            Content = "";
            CreateDate = DateTime.Now;
        }
    }

    public class QuestionExamDTO
    {
        public int QuestionId { get; set; }
        public int AnswerId { get; set; }
    }
}
